<?php


namespace App\Http\Requests\Api;


use App\Http\Requests\BaseFormRequest;

class SendVerificationCodeRequest extends BaseFormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'mobile' => ['required', 'regex:/1\d{10}/'],
            'type' => ['required']
        ];
    }


    public function messages()
    {
        return __('system.sms_verification_code.validation');
    }
}

